package com.bestv.search.common.dao;

import com.bestv.search.common.model.SysRole;
import com.bestv.search.common.model.SysUser;

import java.util.List;

public interface SysUserDao extends GenericDao<SysUser, Long> {

    List<SysUser> getUsers();

    SysUser saveUser(SysUser user);

    SysUser getUserById(Long id);

    List<SysUser> getUserByName(String name);

    List<SysUser> getUserByRole(SysRole role);

    String getPasswordByLoginName(String loginName);

    SysUser getUserByLoginName(String loginName);
}
